package com.yipinhouse.backstage.client;


import com.yipinhouse.backstage.client.param.EsSearchEstateWebParam;
import com.yipinhouse.common.result.Result;
import com.yipinhouse.house.client.result.EstateResultInfo;
import com.yipinhouse.house.client.result.PageEstateResultInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(contextId = "estateQueryBackClient",name="backstage",path = "backstage")
public interface EstateWebQueryClient {

    /**
     * Es条件查询小区
     *
     * @param param
     * @return
     */
    @GetMapping("esSearchEstate")
    public Result<PageEstateResultInfo> esSearchEstate(EsSearchEstateWebParam param);

    /**
     * 根据Id查询小区详情
     * @param estateId
     * @return
     */
    @GetMapping("checkEstate")
    Result<EstateResultInfo> checkEstate(@RequestParam("estateId") Integer estateId);
}
